<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../jq/jquery-3.2.1.js"></script>
		<style type="text/css">
			
			.box{
				width: 200px;
				height: 200px;
				position: relative;
				background-color: hotpink;
			}
		</style>
	</head>
	<body>
		<button type="button">移动</button>
		<div class="box">
			
		</div>
		<script type="text/javascript">
			$(function(){
				$('button').click(function(){
					$('.box').animate({
						left:'500px',
						top:'200px'
						},1000)
				})
			})
		</script>
	</body>
</html>
